package com.gsk.europepharma.salesReport.hibernate.base;

import java.io.Serializable;


/**
 * This is an object that contains data related to the SP_BO.TB_SP_BO_SR_ADM_PDT table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="SP_BO.TB_SP_BO_SR_ADM_PDT"
 */

public abstract class BasetbSpBoSRAdmPdt  implements Serializable {

	public static String REF = "tbSpBoSRAdmPdt";
	public static String PROP_MAJ_USER = "majUser";
	public static String PROP_DATE_MAJ = "dateMaj";
	public static String PROP_lib_marche = "libMarche";
	public static String PROP_ORIGINE_CUMULEE = "OrigineCumulee";
	public static String PROP_lib_pdt = "libPdt";
	public static String PROP_CODE_SRC = "codeSrc";
	public static String PROP_CODE_DATA = "codeData";
	public static String PROP_cs_adm_pdt = "csAdmPdt";


	// constructors
	public BasetbSpBoSRAdmPdt () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BasetbSpBoSRAdmPdt (java.lang.Integer csAdmPdt) {
		this.setcsAdmPdt(csAdmPdt);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.Integer csAdmPdt;

	// fields
	private java.lang.String libMarche;
	private java.lang.String libPdt;
	private java.lang.String origineCumulee;
	private java.lang.Integer csSrc;
	private java.lang.String codeData;
	private java.lang.String majUser;
	private java.util.Date dateMaj;

	private java.lang.String libOrigine;
	private java.lang.String libData;
	private java.lang.String multiSource;
	
	private java.lang.Integer csProduct;
	
	private java.lang.String indPm;
	private java.lang.String indDpm;
	private java.lang.String indVol;
	private java.lang.String indDvol;
	private java.lang.String indEvolVol;

	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  column="cs_adm_pdt"
     */
	public java.lang.Integer getcsAdmPdt () {
		return csAdmPdt;
	}

	/**
	 * Set the unique identifier of this class
	 * @param csAdmPdt the new ID
	 */
	public void setcsAdmPdt (java.lang.Integer csAdmPdt) {
		this.csAdmPdt = csAdmPdt;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: lib_marche
	 */
	public java.lang.String getlibMarche () {
		return libMarche;
	}

	/**
	 * Set the value related to the column: lib_marche
	 * @param libMarche the lib_marche value
	 */
	public void setlibMarche (java.lang.String libMarche) {
		this.libMarche = libMarche;
	}



	/**
	 * Return the value associated with the column: lib_pdt
	 */
	public java.lang.String getlibPdt () {
		return libPdt;
	}

	/**
	 * Set the value related to the column: lib_pdt
	 * @param libPdt the lib_pdt value
	 */
	public void setlibPdt (java.lang.String libPdt) {
		this.libPdt = libPdt;
	}



	/**
	 * Return the value associated with the column: ORIGINE_CUMULEE
	 */
	public java.lang.String getOrigineCumulee () {
		return origineCumulee;
	}

	/**
	 * Set the value related to the column: ORIGINE_CUMULEE
	 * @param origineCumulee the ORIGINE_CUMULEE value
	 */
	public void setOrigineCumulee (java.lang.String origineCumulee) {
		this.origineCumulee = origineCumulee;
	}
	
	public java.lang.String getLibOrigine () {
		return libOrigine;
	}

	public void setLibOrigine (java.lang.String libOrigine) {
		this.libOrigine = libOrigine;
	}

	/**
	 * Return the value associated with the column: CODE_SRC
	 */
	public java.lang.Integer getCsSrc () {
		return csSrc;
	}

	/**
	 * Set the value related to the column: CODE_SRC
	 * @param csSrc the CODE_SRC value
	 */
	public void setCsSrc (java.lang.Integer csSrc) {
		this.csSrc = csSrc;
	}



	/**
	 * Return the value associated with the column: CODE_DATA
	 */
	public java.lang.String getCodeData () {
		return codeData;
	}

	/**
	 * Set the value related to the column: CODE_DATA
	 * @param codeData the CODE_DATA value
	 */
	public void setCodeData (java.lang.String codeData) {
		this.codeData = codeData;
	}
	
	
	public java.lang.String getLibData () {
		return libData;
	}

	public void setLibData (java.lang.String libData) {
		this.libData = libData;
	}



	/**
	 * Return the value associated with the column: MAJ_USER
	 */
	public java.lang.String getMajUser () {
		return majUser;
	}

	/**
	 * Set the value related to the column: MAJ_USER
	 * @param majUser the MAJ_USER value
	 */
	public void setMajUser (java.lang.String majUser) {
		this.majUser = majUser;
	}



	/**
	 * Return the value associated with the column: D_MAJ
	 */
	public java.util.Date getDateMaj () {
		return dateMaj;
	}

	/**
	 * Set the value related to the column: D_MAJ
	 * @param dateMaj the D_MAJ value
	 */
	public void setDateMaj (java.util.Date dateMaj) {
		this.dateMaj = dateMaj;
	}
	
	
	public java.lang.String getMultiSource () {
		return multiSource;
	}

	public void setMultiSource (java.lang.String multiSource) {
		this.multiSource = multiSource;
	}
	
	public java.lang.Integer getCsProduct() {
		return csProduct;
	}

	public void setCsProduct(java.lang.Integer csProduct) {
		this.csProduct = csProduct;
	}
	

	public java.lang.String getIndPm() {
		return indPm;
	}

	public void setIndPm(java.lang.String indPm) {
		this.indPm = indPm;
	}

	public java.lang.String getIndDpm() {
		return indDpm;
	}

	public void setIndDpm(java.lang.String indDpm) {
		this.indDpm = indDpm;
	}

	public java.lang.String getIndVol() {
		return indVol;
	}

	public void setIndVol(java.lang.String indVol) {
		this.indVol = indVol;
	}

	public java.lang.String getIndDvol() {
		return indDvol;
	}

	public void setIndDvol(java.lang.String indDvol) {
		this.indDvol = indDvol;
	}

	public java.lang.String getIndEvolVol() {
		return indEvolVol;
	}

	public void setIndEvolVol(java.lang.String indEvolVol) {
		this.indEvolVol = indEvolVol;
	}

	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof com.gsk.europepharma.salesReport.hibernate.tbSpBoSRAdmPdt)) return false;
		else {
			com.gsk.europepharma.salesReport.hibernate.tbSpBoSRAdmPdt tbSpBoSRAdmPdt = (com.gsk.europepharma.salesReport.hibernate.tbSpBoSRAdmPdt) obj;
			if (null == this.getcsAdmPdt() || null == tbSpBoSRAdmPdt.getcsAdmPdt()) return false;
			else return (this.getcsAdmPdt().equals(tbSpBoSRAdmPdt.getcsAdmPdt()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getcsAdmPdt()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getcsAdmPdt().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}


}